package com.dotflat.physicalevaluate.repository;

import com.dotflat.physicalevaluate.domain.pe.PERecord;
import com.dotflat.physicalevaluate.domain.pe.RelRecordMeasure;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;


@CacheConfig(cacheNames = "RelRecordMeasureRepository")
public interface RelRecordMeasureRepository extends JpaRepository<RelRecordMeasure, String>, JpaSpecificationExecutor<RelRecordMeasure> {

    RelRecordMeasure getByRecordAndDimension(PERecord record, String dimension);

}